//
//  EvaluateModel.m
//  MM
//
//  Created by 郑渊文 on 6/1/15.
//  Copyright (c) 2015 王晨辉. All rights reserved.
//

#import "EvaluateModel.h"

@implementation EvaluateModel

- (EvaluateModel *)initWithDict:(NSDictionary *)dict
{
    if (self = [super init])
    {
//        self.evaluateId = dict[@"evaluateId"] == [NSNull null] ?@"":dict[@"evaluateId"];
        self.evaluateContent = dict[@"sugContent"] == [NSNull null] ?@"":dict[@"sugContent"];
        self.evaluatesStar = dict[@"sugGrade"] == [NSNull null] ?@"":dict[@"sugGrade"];
        self.evaluateUser = [dict[@"userName"] isEqualToString: @""] ?@"游客":dict[@"userName"];
        self.evalateTime = dict[@"sugTime"] == [NSNull null] ?@"":dict[@"sugTime"];
        self.UserImg = dict[@"userImg"] == [NSNull null] ?@"":dict[@"userImg"];
    }
    return self;
}


@end
